package com.youshuit.designmodedemo.service.impl.proxy;

import com.youshuit.designmodedemo.service.IImageService;
import org.springframework.stereotype.Service;

/**
 * @author zhongzm
 * @date 2025-11-04 10:53
 */

public class ProxyImageServiceImpl implements IImageService {

    private final RealImageServiceImpl realImageService;



    public ProxyImageServiceImpl(String imageUrl) {
        this.realImageService = new RealImageServiceImpl(imageUrl);
    }


    @Override
    public void dispaly() {
        realImageService.dispaly();
    }

    @Override
    public void updateImageUrl(String imageUrl) {
        realImageService.updateImageUrl(imageUrl);
    }
}
